package org.shushuteam.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@Api(value = "测试", tags = "测试")
public class TestController {


    @GetMapping("test")
    @ApiOperation(value = "这是一个测试")
    public String test(int id, String msg) {
        return "你好呀！现在时间是：" + String.valueOf(new Date().toString());
    }

    @PostMapping("test")
    @ApiOperation(value = "这是第二个测试")
    public String test(String msg) {
           return "你好呀！现在时间是：" + String.valueOf(new Date().toString());
    }
}

